﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace DataAccess
{
    [DataContract]
    public partial class Article: ICopyable<Article>, IIdentifier
    {
        #region Implementation of IIdentifier

        public int ID
        {
            get { return _ArticleID; }
        }

        #endregion

        #region ICopyable<Article> Members

        public void CopyFrom(Article item)
        {
            if (item._ArticleName != null) _ArticleName = item._ArticleName;
            if (item._ArticlesText != null) _ArticlesText = item._ArticlesText;
        }

        #endregion
    }
}
